<oc-dialog oc-dialog-title="我的团队"
	oc-dialog-icon="team"
	oc-dialog-switch="MS"
	style="width:40.2rem;height:20rem;">
	<div class="grid" ng-controller="teamEdit">
		<nav class="oc-toolbar" style="border-bottom:1px solid #aaa;">
			<button class="ico refresh" title="刷新团队信息"></button>
		</nav>
		<fieldset class="oc-legend" style="top:1.5rem;left:0.3rem;width:12rem;bottom:.3rem;">
			<legend>常规</legend>
			<label style="top:0.5rem;left:0.3rem;" for="team-name">团队名称：</label>
			<input type="text" ng-model="team.name" ng-change="setChanged()"
				style="top:1.5rem;left:0.3rem;width:11.3rem;" id="team-name">
			<label style="top:2.8rem;left:0.3rem;" for="team-comment">描述：</label>
			<textarea ng-model="team.comment" ng-change="setChanged()"
				style="top:3.8rem;left:0.3rem;
				width:11.3rem;height:3.5rem;max-width:11.3rem;max-height:10rem;" id="team-comment"></textarea>
			<button class="text-but" ng-click="updateTeamInfo()" ng-disabled="!isTeamInfoChanged"
				style="height:1.4rem;width:4.3rem;top:7.6rem;right:0.3rem">应用修改</button>
			<button ng-click="deleteTeam()"
				style="left:0.3rem;width:4.3rem;height:1.4rem;bottom:0.3rem">删除团队</button>
		</fieldset>
		<fieldset class="oc-legend" style="top:1.5rem;bottom:.3rem;width:16.5rem;right:11.1rem">
			<legend>职位</legend>
			<button class="ico refresh" ng-click="refreshPositionListOfTeam()"
				style="top:0.5rem;right:0.3rem" title="刷新职位列表"></button>
			<button class="ico add" oc-dialog-open="createPosition"
				style="top:0.5rem;left:.3rem" title="添加职位"></button>
			<button class="ico delete"
				ng-disabled="positionList.selected<0"
				oc-alert-open="deletePosition"
				style="top:0.5rem;left:1.7rem" title="删除职位"></button>
			<button class="ico appoint" oc-dialog-open="appointPosition"
				style="top:0.5rem;left:3.1rem" ng-disabled="positionList.selected<0"
				title="指派"></button>
			<button class="ico position-edit" ng-click="editPosition()"
				style="top:0.5rem;left:4.5rem" ng-disabled="positionList.selected<0"
				title="编辑职位"></button>
			<button class="ico unappoint" ng-click="dismiss()"
				style="top:0.5rem;left:5.9rem" ng-disabled="positionList.selected<0"
				title="取消指派"></button>
			<oc-list oc-list-data="position"
				oc-list-control="positionList"
				oc-list-refresh="isPositionChanged"
				style="top:1.9rem;right:0.3rem;bottom:0.3rem;left:0.3rem;border:1px solid #ccc"></oc-list>
		</fieldset>
		<fieldset class="oc-legend" style="top:1.5rem;bottom:.3rem;width:10.5rem;right:0.3rem">
			<legend>角色</legend>
			<button class="ico add" oc-dialog-open="createRole"
				style="top:0.5rem;left:.3rem" title="创建角色"></button>
			<button class="ico delete" oc-alert-open="deleteRole" ng-disabled="roleList.selected<0"
				style="top:0.5rem;left:1.7rem" title="删除角色"></button>
			<button class="ico refresh" ng-click="refreshRoleListOfTeam()"
				style="top:0.5rem;right:.3rem" title="刷新角色列表"></button>
			<oc-list oc-list-data="role" oc-list-control="roleList"
				style="top:1.9rem;right:0.3rem;bottom:0.3rem;left:0.3rem;border:1px solid #ccc"></oc-list>
		</fieldset>
	</div>
</oc-dialog>
